package com.bw.mallshop.mvvm.model;

import com.bw.common.entity.BaseEntity;
import com.bw.common.mvvm.model.BaseModel;
import com.bw.common.network.HttpType;
import com.bw.common.network.RetrofitFactory;
import com.bw.mallshop.entity.ForgetPWDEntity;
import com.bw.mallshop.repository.ApiService;

import java.util.Map;

import io.reactivex.Observable;

public class ForgetPWDModel extends BaseModel {
    //充值密码model
    public Observable<BaseEntity>requestForget(Map<String,Object>parames){
        Observable<ForgetPWDEntity>requestObservable= RetrofitFactory.factory(HttpType.TOKENSIGN)
                .createRetrofit().create(ApiService.class)
                .requestForget(createBody(parames));
        return changeObservable(requestObservable);
    }
}
